import bcrypt from 'bcrypt'

bcrypt.genSalt(10)
    .then(salfRound => bcrypt.hash('test', salfRound))
    .then(hasPasswd => bcrypt.compare('test', hasPasswd))
    .then(result => console.log(result))
